package com.mdb.open.epay.domain.dto.epay;

import cn.hutool.core.date.DatePattern;
import com.mdb.bc.api.data.DataObjectBase;
import com.mdb.bc.validator.annotaion.validation.DateFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author liuyi
 * @date 2019-11-14
 **/
@Data
@ApiModel(description="解约dto对象")
public class UnsignDto extends DataObjectBase {

    private static final long serialVersionUID = 1L;

    /**
     * 銀行簽約協議號
     */
    @NotBlank(message = "客户類型不能为空")
    @Size(max = 32)
    private String bankSignNo;

    /**
     * 銀行簽約時間
     */
    @NotBlank(message = "銀行簽約時間不能为空")
    @Size(min = 14, max = 14, message = "銀行簽約時間不正確")
    @DateFormat(format = DatePattern.PURE_DATETIME_PATTERN, message = "銀行簽約時間不正確")
    private String bankSignTime;

    /**
     * 簽約流水號
     */
    @NotBlank(message = "簽約流水號不能为空")
    @Size(max = 32)
    private String signSerialNo;
}